const mongoose = require("mongoose");

(async () => {
  try {
    await mongoose.connect("mongodb://127.0.0.1:27017/h5220707");
    //连接成功的回调
  } catch (e) {
    //连接失败的回调
  }
})();
